package com.jie.client.service.ui.model;

import com.jie.client.service.entity.model.User;
import javafx.collections.ObservableList;
import javafx.scene.control.ListView;

import java.util.List;

/**
 * 在线用户结点
 * @author XieZhiJie
 * @date 2022/04/28 13:55
 */
public class OnlineListNode {

    /**
     * 在线用户列表视图
     */
    public final ListView<String> onlineListView;

    public final List<User> onlineListDetailsData;

    /**
     * 在线用户列表数据项, 记录 用户名(用户账号)
     */
    public final ObservableList<String> onlineListData;

    public OnlineListNode(
            ListView<String> onlineListView,
            List<User> onlineListDetailsData,
            ObservableList<String> onlineListData) {
        this.onlineListView = onlineListView;
        this.onlineListDetailsData = onlineListDetailsData;
        this.onlineListData = onlineListData;
    }

}
